import request from '../utils/request';
import { PAGE_SIZE } from '../constants';
//处理分户修改
export function UpdateDiviPro({ dateString }) {
    var data = new FormData()
    data.append('Date', JSON.stringify(dateString))
    return request(`/api/restricted/UpDiviProcess/Divi`, {
        method: 'POST',
        body: data,
    });
}

//生成数据
export function CreateData({ dateString }) {
    var data = new FormData()
    data.append('Date', JSON.stringify(dateString))
    return request(`/api/restricted/CreateData/Divi`, {
        method: 'POST',
        body: data,
    });
}

//生成数据
export function ReImport({ dateString }) {
    var data = new FormData()
    data.append('Date', JSON.stringify(dateString))
    return request(`/api/restricted/ReImport/Divi`, {
        method: 'POST',
        body: data,
    });
}

//对私认定审批查询
export function fetchIndi({ daoName, page, pageSize, sorter, filters, permID }) {
    let orderItems = []
    let data = new FormData()
    if (sorter && sorter.length > 0) {
        data.append("OrderItems", JSON.stringify(sorter))
    }
    if (filters && filters.length > 0) {
        data.append("WhereCauses", JSON.stringify(filters))
    }
    data.append("PermID", "" + permID)
    return request(`/api/restricted/Find/IndiWorkflow/${page}/${pageSize}`, {
        method: 'POST',
        body: data,
    });
}
//对公认定审批查询
export function fetchComp({ daoName, page, pageSize, sorter, filters, permID }) {
    let orderItems = []
    let data = new FormData()
    if (sorter && sorter.length > 0) {
        data.append("OrderItems", JSON.stringify(sorter))
    }
    if (filters && filters.length > 0) {
        data.append("WhereCauses", JSON.stringify(filters))
    }
    data.append("PermID", "" + permID)
    return request(`/api/restricted/Find/CompWorkflow/${page}/${pageSize}`, {
        method: 'POST',
        body: data,
    });
}
//对公账户认定
export function compDivi({ acid, dataSource }) {
    var data = new FormData()
    data.append('Acid', JSON.stringify(acid))
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/AccountDiviflow/Comp`, {
        method: 'POST',
        body: data,
    });
}
export function compDiviKh({ acid, dataSource }) {
    var data = new FormData()
    data.append('Acid', JSON.stringify(acid))
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/AccountDiviflow/Compkh`, {
        method: 'POST',
        body: data,
    });
}

//设置是否默认关联
export function SetIsmrOK({ acid }) {
    var data = new FormData()
    data.append('Acid', JSON.stringify(acid))
    return request(`/api/restricted/AccountDiviflow/SetIsmrOK`, {
        method: 'POST',
        body: data,
    });
}

//设置是否默认关联
export function SetIsmrNO({ acid }) {
    var data = new FormData()
    data.append('Acid', JSON.stringify(acid))
    return request(`/api/restricted/AccountDiviflow/SetIsmrNO`, {
        method: 'POST',
        body: data,
    });
}

//对私账户认定
export function indiDivi({ acid, dataSource }) {
    var data = new FormData()
    data.append('Acid', JSON.stringify(acid))
    data.append('DataSource', JSON.stringify(dataSource))
    console.log(data)
    return request(`/api/restricted/AccountDiviflow/Indi`, {
        method: 'POST',
        body: data,
    });
}

export function indiDivikh({ acid, dataSource }) {
    var data = new FormData()
    data.append('Acid', JSON.stringify(acid))
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/AccountDiviflow/Indikh`, {
        method: 'POST',
        body: data,
    });
}

//设置是否默认关联
export function SetIndiIsmrOK({ acid }) {
    var data = new FormData()
    data.append('Acid', JSON.stringify(acid))
    return request(`/api/restricted/AccountDiviflow/SetIndiIsmrOK`, {
        method: 'POST',
        body: data,
    });
}

//设置是否默认关联
export function SetIndiIsmrNO({ acid }) {
    var data = new FormData()
    data.append('Acid', JSON.stringify(acid))
    return request(`/api/restricted/AccountDiviflow/SetIndiIsmrNO`, {
        method: 'POST',
        body: data,
    });
}

//对私客户认定
export function clieIndiDivi({ cuids, dataSource }) {
    var data = new FormData()
    data.append('Cuids', JSON.stringify(cuids))
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/ClientDiviIndi/Indi`, {
        method: 'POST',
        body: data,
    });
}
//对公客户认定
export function clieCompDivi({ cuids, dataSource }) {
    var data = new FormData()
    data.append('Cuids', JSON.stringify(cuids))
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/ClientDiviComp/Comp`, {
        method: 'POST',
        body: data,
    });
}
//中间业务认定
export function clieMinDivi({ jlid, khlx, dataSource }) {
    var data = new FormData()
    data.append('Jlid', jlid)
    data.append('Khlx', khlx)
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/ClientDiviMin/Min`, {
        method: 'POST',
        body: data,
    });
}
// export function clieMinDivi({ acids, dataSource }) {
//     var data = new FormData()
//     data.append('Acids', JSON.stringify(acids))
//     data.append('DataSource', JSON.stringify(dataSource))
//     return request(`/api/restricted/ClientDiviMin/Min`, {
//         method: 'POST',
//         body: data,
//     });
// }
//个人理财认定
export function clieIndiFanaDivi({ acids, dataSource }) {
    var data = new FormData()
    data.append('Acids', JSON.stringify(acids))
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/ClientDiviFana/IndiFana`, {
        method: 'POST',
        body: data,
    });
}
//个人贷款认定
export function clieIndiLoanDivi({ acids, dataSource }) {
    var data = new FormData()
    data.append('Acids', JSON.stringify(acids))
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/ClientDiviLoan/IndiLoan`, {
        method: 'POST',
        body: data,
    });
}
//保存对公审批信息
export function clieCompWorkFlow({ istj, dataSource }) {
    var data = new FormData()
    data.append('DataSource', JSON.stringify(dataSource))
    data.append('ISTJ', JSON.stringify(istj))
    return request(`/api/restricted/ClientCompDiviWorkFlow/Comp`, {
        method: 'POST',
        body: data,
    });
}
//对公审批提交
export function clieCompSubmitWorkFlow({ keys }) {
    var data = new FormData()
    data.append('KEY', JSON.stringify(keys))
    return request(`/api/restricted/ClientCompDiviSubmitWorkFlow/Comp`, {
        method: 'POST',
        body: data,
    });
}
//对公审批打回
export function clieCompRollWorkFlow({ keys }) {
    var data = new FormData()
    data.append('KEY', JSON.stringify(keys))
    return request(`/api/restricted/ClientCompRollWorkFlow/Comp`, {
        method: 'POST',
        body: data,
    });
}
//对公流程节点查询
export function WorkFlowCompfetch() {
    return request(`/api/restricted/WorkFlowComp/Comp`);
}
//对私流程节点查询
export function WorkFlowIndifetch() {
    return request(`/api/restricted/WorkFlowIndi/Indi`);
}

export function CompWorkFlowStep({ key }) {
    var data = new FormData()
    data.append('WFID', JSON.stringify(key))
    return request(`/api/restricted/CompWorkFlowStep/Comp`, {
        method: 'POST',
        body: data,
    });
}
//员工业绩转移
export function UserDiviChange({ dataSource }) {
    var data = new FormData()
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/UserDiviChange/Divi`, {
        method: 'POST',
        body: data,
    });
}
//保存对私审批信息
export function clieIndiWorkFlow({ istj, dataSource }) {
    var data = new FormData()
    data.append('DataSource', JSON.stringify(dataSource))
    data.append('ISTJ', JSON.stringify(istj))
    return request(`/api/restricted/ClientDiviWorkFlow/Indi`, {
        method: 'POST',
        body: data,
    });
}
//对私流程提交
export function clieIndiSubmitWorkFlow({ keys }) {
    var data = new FormData()
    data.append('KEY', JSON.stringify(keys))
    return request(`/api/restricted/ClientDiviSubmitWorkFlow/Indi`, {
        method: 'POST',
        body: data,
    });
}
//对私打回
export function clieIndiRollWorkFlow({ keys }) {
    var data = new FormData()
    data.append('KEY', JSON.stringify(keys))
    return request(`/api/restricted/ClientIndiRollWorkFlow/Indi`, {
        method: 'POST',
        body: data,
    });
}

export function IndiWorkFlowStep({ key }) {
    var data = new FormData()
    data.append('WFID', JSON.stringify(key))
    return request(`/api/restricted/IndiWorkFlowStep/Indi`, {
        method: 'POST',
        body: data,
    });
}
//提交前验证选中信息是否可以提价
export function IndiWorkFlow({ key }) {
    var data = new FormData()
    data.append('ID', JSON.stringify(key))
    return request(`/api/restricted/TIndiWorkFlowStep/Indi`, {
        method: 'POST',
        body: data,
    });
}

export function CompWorkFlow({ key }) {
    var data = new FormData()
    data.append('ID', JSON.stringify(key))
    return request(`/api/restricted/TCompWorkFlowStep/Comp`, {
        method: 'POST',
        body: data,
    });
}
export function GetLogin() {
    return request(`/api/restricted/DiviWorkFlowGetLogin`);
}
/** 对公其他指标认定*/
export function compDiviQTZB({ num, ywid, jlid, dataSource }) {
    var data = new FormData()
    data.append('Jlid', JSON.stringify(jlid))
    data.append('Num', JSON.stringify(num))
    data.append('Ywid', JSON.stringify(ywid))
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/AccountDivi/Comp`, {
        method: 'POST',
        body: data,
    });
}
/** 零售其他指标认定*/
export function indiDiviQTZB({ num, ywid, jlid, dataSource }) {
    var data = new FormData()
    data.append('Jlid', JSON.stringify(jlid))
    data.append('Num', JSON.stringify(num))
    data.append('Ywid', JSON.stringify(ywid))
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/AccountDivi/Indi`, {
        method: 'POST',
        body: data,
    });
}
/**修改理财产品中收费率 */
export function setFapuZsfl({ NO, ZSFL }) {
    var data = new FormData()
    data.append('NO', JSON.stringify(NO))
    data.append('ZSFL', JSON.stringify(ZSFL))
    return request(`/api/restricted/UpdateSet/FapuZsfl`, {
        method: 'POST',
        body: data,
    });
}
/**零售基数调整 */
export function IndiYgjsTzXz({ LSH, dataSource }) {
    var data = new FormData()
    data.append('LSH', JSON.stringify(LSH))
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/AccountDivi/IndiYgjsTz`, {
        method: 'POST',
        body: data,
    });
}
/**代发单位认定 */
export function dfdwDivi({ acids, dataSource }) {
    var data = new FormData()
    data.append('Cuids', JSON.stringify(acids))
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/AccountDivi/dfdw`, {
        method: 'POST',
        body: data,
    });
}
/**国际业务认定 */
export function GjywDiviQTZB({ num, ywid, jlid, dataSource }) {
    var data = new FormData()
    data.append('Jlid', JSON.stringify(jlid))
    data.append('Num', JSON.stringify(num))
    data.append('Ywid', JSON.stringify(ywid))
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/AccountDivi/Gjyw`, {
        method: 'POST',
        body: data,
    });
}
/**修改同业FTP */
export function setTyywFtp({ NO, ZSFL }) {
    var data = new FormData()
    data.append('NO', JSON.stringify(NO))
    data.append('ZSFL', JSON.stringify(ZSFL))
    return request(`/api/restricted/UpdateSet/TYYWFtp`, {
        method: 'POST',
        body: data,
    });
}
/**修改对公中收付款户名 */
export function CLieMinXghmDivi({ dataSource }) {
    var data = new FormData()
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/ClientDiviMin/MinXghm`, {
        method: 'POST',
        body: data,
    });
}
/**修改零售中收付款户名 */
export function CLieMinXghmLsDivi({ dataSource }) {
    var data = new FormData()
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/ClientDiviMin/MinXghmLs`, {
        method: 'POST',
        body: data,
    });
}

/**员工部门调动查询 */
export function fetchUserNewOrgWorkflow({ daoName, page, pageSize, sorter, filters, permID }) {
    let orderItems = []
    let data = new FormData()
    if (sorter && sorter.length > 0) {
        data.append("OrderItems", JSON.stringify(sorter))
    }
    if (filters && filters.length > 0) {
        data.append("WhereCauses", JSON.stringify(filters))
    }
    data.append("PermID", "" + permID)
    return request(`/api/restricted/Find/UserWorkflow/${page}/${pageSize}`, {
        method: 'POST',
        body: data,
    });
}

/**保存员工部门调动信息 */
export function UserNewOrgCreateWorkFlow({ dataSource }) {
    var data = new FormData()
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/CreateWorkFlow/UserNewOrgan`, {
        method: 'POST',
        body: data,
    });
}

/**提交前验证选中信息是否可以提价 */
export function UserOrganWorkFlow({ key }) {
    var data = new FormData()
    data.append('ID', JSON.stringify(key))
    return request(`/api/restricted/UserOrganWorkFlowStep/UserOrgan`, {
        method: 'POST',
        body: data,
    });
}

//对私流程提交
export function UserOrganSubmitWorkFlow({ keys }) {
    var data = new FormData()
    data.append('KEY', JSON.stringify(keys))
    return request(`/api/restricted/UserOrganSubmitWorkFlow/UserOrgan`, {
        method: 'POST',
        body: data,
    });
}

//业绩转移选择：部分业绩留下时，判断业绩是否导入
export function UserOrganImportDivi({ ygdd }) {
    var data = new FormData()
    data.append('ID', JSON.stringify(ygdd))
    return request(`/api/restricted/UserOrganDiviSel/UserOrgan`, {
        method: 'POST',
        body: data,
    });
}

//员工部门调动，修改业绩转移方式
export function UpdateUserOrgan({ YJBD, NEMID, ygdd }) {
    var data = new FormData()
    data.append('ID', JSON.stringify(ygdd))
    data.append('YJBD', JSON.stringify(YJBD))
    data.append('NEMID', JSON.stringify(NEMID))
    return request(`/api/restricted/UserOrganUpdate/UserOrgan`, {
        method: 'POST',
        body: data,
    });
}

/** 对公客户企业类型维护*/
export function ALterSaveCompClieQylx({ jlid, dataSource }) {
    var data = new FormData()
    data.append('Jlid', JSON.stringify(jlid))
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/AlterSaveCompCile/Qylx`, {
        method: 'POST',
        body: data,
    });
}

/** 对公利率维护*/
export function UpdateCompAccoInrt({ acid, ll, date }) {
    var data = new FormData()
    data.append('acid', acid)
    data.append('ll', ll)
    data.append('date', date)
    return request(`/api/restricted/UpdateCompAccoInrt/Inrt`, {
        method: 'POST',
        body: data,
    });
}
/** 对公存款原生派生设置*/
export function SetCompAccoIsys({ acids, isys, date }) {
    var data = new FormData()
    data.append('acids', acids)
    data.append('isys', JSON.stringify(isys))
    data.append('date', JSON.stringify(date))
    return request(`/api/restricted/SetCompAccoIsys/Isys`, {
        method: 'POST',
        body: data,
    });
}

/** 个人存款认定申请*/
export function IndiAccoDiviSq({ mainData, dataSource }) {
    var data = new FormData()
    data.append('mainData', JSON.stringify(mainData))
    data.append('dataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/IndiAccoDiviSq/IndiAccoDiviSq`, {
        method: 'POST',
        body: data,
    });
}

/** 个人存款认定申请审批不同意*/
export function IndiAccoDiviSqBTY({ acids, yy }) {
    var data = new FormData()
    data.append('acids', JSON.stringify(acids))
    data.append('yy', JSON.stringify(yy))
    return request(`/api/restricted/IndiAccoDiviSqBTY/IndiAccoDiviSqBTY`, {
        method: 'POST',
        body: data,
    });
}

/** 个人存款认定申请审批同意*/
export function IndiAccoDiviSqTY({ keys }) {
    var data = new FormData()
    data.append('keys', JSON.stringify(keys))
    return request(`/api/restricted/IndiAccoDiviSqTY/IndiAccoDiviSqTY`, {
        method: 'POST',
        body: data,
    });
}

/** 对公关联客户维护--添加主客户*/
export function CompClieKhglInsC({ CUID }) {
    var data = new FormData()
    data.append('CUID', JSON.stringify(CUID))
    return request(`/api/restricted/CompClieKhgl/InsC`, {
        method: 'POST',
        body: data,
    });
}
/** 对公关联客户维护--添加关联客户*/
export function CompClieKhglInsGl({ CUID, dataSource }) {
    var data = new FormData()
    data.append('CUID', JSON.stringify(CUID))
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/CompClieKhgl/InsGl`, {
        method: 'POST',
        body: data,
    });
}
/** 中小关联客户维护--添加主客户*/
export function CompClieKhglZxInsC({ CUID }) {
    var data = new FormData()
    data.append('CUID', JSON.stringify(CUID))
    return request(`/api/restricted/CompClieKhglZx/InsC`, {
        method: 'POST',
        body: data,
    });
}
/** 中小关联客户维护--添加关联对公/零售客户*/
export function CompClieKhglZxInsGl({ CUID, dataSource }) {
    var data = new FormData()
    data.append('CUID', JSON.stringify(CUID))
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/CompClieKhglZx/InsGl`, {
        method: 'POST',
        body: data,
    });
}
/** 对公客户综合收益目标设置*/
export function CompClieZhsymbIns({ CUID, dataSource }) {
    var data = new FormData()
    data.append('CUID', JSON.stringify(CUID))
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/CompClieZhsymb/Ins`, {
        method: 'POST',
        body: data,
    });
}
/** 中小客户综合收益目标设置*/
export function CompClieZhsyMbsdIns({ CUID, dataSource }) {
    var data = new FormData()
    data.append('CUID', JSON.stringify(CUID))
    data.append('DataSource', JSON.stringify(dataSource))
    return request(`/api/restricted/CompClieZhsyMbsd/Ins`, {
        method: 'POST',
        body: data,
    });
}

/** 删除对公主客户信息*/
export function DelCompMainClie({ ids }) {
    var data = new FormData()
    data.append('ids', JSON.stringify(ids))
    return request(`/api/restricted/DelCompMainClie/DelCompMainClie`, {
        method: 'POST',
        body: data,
    });
}

/** 删除对公关联客户信息*/
export function DelCompOtherClie({ mkeys, okeys }) {
    var data = new FormData()
    data.append('mkeys', JSON.stringify(mkeys))
    data.append('okeys', JSON.stringify(okeys))
    return request(`/api/restricted/DelCompOtherClie/DelCompOtherClie`, {
        method: 'POST',
        body: data,
    });
}

/** 删除对公中小主客户信息*/
export function delCompClieMain({ cuid }) {
    var data = new FormData()
    data.append('cuid', JSON.stringify(cuid))
    return request(`/api/restricted/delCompClieMain/delCompClieMain`, {
        method: 'POST',
        body: data,
    });
}

/** 删除中小对公关联客户信息*/
export function DelCompClieGldg({ minkey, dgkeys }) {
    var data = new FormData()
    data.append('mkeys', JSON.stringify(minkey))
    data.append('dgkeys', JSON.stringify(dgkeys))
    return request(`/api/restricted/DelCompClieGl/DelCompClieGl`, {
        method: 'POST',
        body: data,
    });
}

/** 删除中小零售关联客户信息*/
export function delIndiClieGl({ minkey, lskeys }) {
    var data = new FormData()
    data.append('mkeys', JSON.stringify(minkey))
    data.append('lskeys', JSON.stringify(lskeys))
    return request(`/api/restricted/DelIndiClieGl/DelIndiClieGl`, {
        method: 'POST',
        body: data,
    });
}

/** 删除对公收益目标信息*/
export function delSymb({ otherkey }) {
    var data = new FormData()
    data.append('otherkey', JSON.stringify(otherkey))
    return request(`/api/restricted/delSymb/delSymb`, {
        method: 'POST',
        body: data,
    });
}

/** 删除中小收益目标信息*/
export function delSymbzx({ otherkey }) {
    var data = new FormData()
    data.append('otherkey', JSON.stringify(otherkey))
    return request(`/api/restricted/delSymbzx/delSymbzx`, {
        method: 'POST',
        body: data,
    });
}

/** 生成综合收益数据*/
export function Scdgzhsysj({ dateString }) {
    var data = new FormData()
    data.append('Date', JSON.stringify(dateString))
    return request(`/api/restricted/Scdgzhsysj/Scdgzhsysj`, {
        method: 'POST',
        body: data,
    });
}

/** 生成综合收益数据*/
export function Sczxzhsysj({ dateString }) {
    var data = new FormData()
    data.append('Date', JSON.stringify(dateString))
    return request(`/api/restricted/Sczxzhsysj/Sczxzhsysj`, {
        method: 'POST',
        body: data,
    });
}

export function AddUserEmail({ emid }) {
    var data = new FormData()
    data.append('emid', JSON.stringify(emid))
    return request(`/api/restricted/AddUserEmail/AddUserEmail`, {
        method: 'POST',
        body: data,
    });
}

export function DelUserEmail({ emid }) {
    var data = new FormData()
    data.append('emid', JSON.stringify(emid))
    return request(`/api/restricted/DelUserEmail/DelUserEmail`, {
        method: 'POST',
        body: data,
    });
}

export function sendMail({ }) {
    var data = new FormData()
    return request(`/api/restricted/sendMail/sendMail`, {
        method: 'POST',
        body: data,
    });
}

export function AddZxqyUserEmail({ emid }) {
    var data = new FormData()
    data.append('emid', JSON.stringify(emid))
    return request(`/api/restricted/AddZxqyUserEmail/AddZxqyUserEmail`, {
        method: 'POST',
        body: data,
    });
}

export function DelZxqyUserEmail({ emid }) {
    var data = new FormData()
    data.append('emid', JSON.stringify(emid))
    return request(`/api/restricted/DelZxqyUserEmail/DelZxqyUserEmail`, {
        method: 'POST',
        body: data,
    });
}

export function sendZxqyMail({ }) {
    var data = new FormData()
    return request(`/api/restricted/sendZxqyMail/sendZxqyMail`, {
        method: 'POST',
        body: data,
    });
}



export function defaultDate({ }) {
    var data = new FormData()
    return request(`/api/restricted/defaultDate/defaultDate`, {
        method: 'POST',
        body: data,
    });
}

export function InsertList({ }) {
    var data = new FormData()
    return request(`/api/restricted/InsertList/InsertList`, {
        method: 'POST',
        body: data,
    });
}

export function InsertListDate({ date }) {
    var data = new FormData()
    data.append('date', JSON.stringify(date))
    return request(`/api/restricted/InsertListDate/InsertListDate`, {
        method: 'POST',
        body: data,
    });
}
//对公存款认定
export function DelCompDivi({ id }) {
    var data = new FormData()
    data.append('id', JSON.stringify(id))
    return request(`/api/restricted/AccountDiviflow/DelCompDivi`, {
        method: 'POST',
        body: data,
    });
}

//对公贷款认定
export function DelCompDiviDk({ id }) {
    var data = new FormData()
    data.append('id', JSON.stringify(id))
    return request(`/api/restricted/AccountDiviflow/DelCompDiviDk`, {
        method: 'POST',
        body: data,
    });
}

export function DelIndiDivi({ id }) {
    var data = new FormData()
    data.append('id', JSON.stringify(id))
    return request(`/api/restricted/AccountDiviflow/DelIndiDivi`, {
        method: 'POST',
        body: data,
    });
}
//删除个人贷款认定账户认定情况
export function DeleteINDILOAN({ id }) {
    var data = new FormData()
    data.append('id', JSON.stringify(id))
    return request(`/api/restricted/AccountDiviflow/DeleteINDILOAN`, {
        method: 'POST',
        body: data,
    });
}


export function GetFTP({ key }) {
    var data = new FormData()
    data.append('key', key)
    return request(`/api/restricted/AccountDiviflow/GetFTP`, {
        method: 'POST',
        body: data,
    });
}

export function GetMnlr({ ywpz, ftpcs, ksrq, jsrq, je, ll, ftp }) {
    var data = new FormData()
    data.append('ywpz', ywpz)
    data.append('ftpcs', ftpcs)
    data.append('ksrq', ksrq)
    data.append('jsrq', jsrq)
    data.append('je', je)
    data.append('ll', ll)
    data.append('ftp', ftp)
    return request(`/api/restricted/AccountDiviflow/GetMnlr`, {
        method: 'POST',
        body: data,
    });
}

export function GetCPQZ({ cpqz }) {
    var data = new FormData()
    data.append('cpqz', cpqz)
    return request(`/api/restricted/AccountDiviflow/GetCPQZ`, {
        method: 'POST',
        body: data,
    });
}

export function GetKHPZ({ khpz }) {
    var data = new FormData()
    data.append('khpz', khpz)
    return request(`/api/restricted/AccountDiviflow/GetKHPZ`, {
        method: 'POST',
        body: data,
    });
}

export function GetZYDB({ zydb }) {
    var data = new FormData()
    data.append('zydb', zydb)
    return request(`/api/restricted/AccountDiviflow/GetZYDB`, {
        method: 'POST',
        body: data,
    });
}

export function GetBZDB({ bzlx, bzrpj }) {
    var data = new FormData()
    data.append('bzlx', bzlx)
    data.append('bzrpj', bzrpj)
    return request(`/api/restricted/AccountDiviflow/GetBZDB`, {
        method: 'POST',
        body: data,
    });
}

export function GetQX({ qx }) {
    var data = new FormData()
    data.append('qx', qx)
    return request(`/api/restricted/AccountDiviflow/GetQX`, {
        method: 'POST',
        body: data,
    });
}

export function GetGM({ gm }) {
    var data = new FormData()
    data.append('gm', gm)
    return request(`/api/restricted/AccountDiviflow/GetGM`, {
        method: 'POST',
        body: data,
    });
}

export function GetHY({ hy }) {
    var data = new FormData()
    data.append('hy', hy)
    return request(`/api/restricted/AccountDiviflow/GetHY`, {
        method: 'POST',
        body: data,
    });
}

export function GetEVA({ cpqzxs, khpzxs, zydbxs, bzdbxs, qxxs, gmxs, hyxs, je, khlr, bzjbl }) {
    var data = new FormData()
    data.append('cpqzxs', cpqzxs)
    data.append('khpzxs', khpzxs)
    data.append('zydbxs', zydbxs)
    data.append('bzdbxs', bzdbxs)
    data.append('qxxs', qxxs)
    data.append('gmxs', gmxs)
    data.append('hyxs', hyxs)
    data.append('je', je)
    data.append('khlr', khlr)
    data.append('bzjbl', bzjbl)
    return request(`/api/restricted/AccountDiviflow/GetEVA`, {
        method: 'POST',
        body: data,
    });
}

export function SaveGh({ acid, uid }) {
    var data = new FormData()
    data.append('acid', acid)
    data.append('uid', uid)
    return request(`/api/restricted/SaveGh/SaveGh`, {
        method: 'POST',
        body: data,
    });
}


//获取对公账户是否已认定
export async function GetCompIsDivi({ cunm, divi }) {
    let data = new FormData()
    data.append("cunm", cunm)
    data.append("divi", divi)
    return request(`/api/restricted/workflow/GetCompIsDivi`, {
        method: 'POST',
        body: data,
    });
}

//获取零售账户是否已认定
export async function GetIndiIsDivi({ zjhm }) {
    let data = new FormData()
    data.append("zjhm", zjhm)
    return request(`/api/restricted/workflow/GetIndiIsDivi`, {
        method: 'POST',
        body: data,
    });
}

//对公中收修改户名
export function Xghm({ jlid, cunm }) {
    var data = new FormData()
    data.append('jlid', jlid)
    data.append('cunm', cunm)
    // data.append('xgfs', xgfs)
    return request(`/api/restricted/AccountDiviflow/Xghm`, {
        method: 'POST',
        body: data,
    });
}

//对公中收修改户名
export function Xgyg({ jlid, yg1, yg2, yg3, yg4, yg5, zb1, zb2, zb3, zb4, zb5 }) {
    var data = new FormData()
    data.append('jlid', jlid)
    data.append('yg1', yg1)
    data.append('yg2', yg2)
    data.append('yg3', yg3)
    data.append('yg4', yg4)
    data.append('yg5', yg5)
    data.append('zb1', zb1)
    data.append('zb2', zb2)
    data.append('zb3', zb3)
    data.append('zb4', zb4)
    data.append('zb5', zb5)
    return request(`/api/restricted/AccountDiviflow/Xgyg`, {
        method: 'POST',
        body: data,
    });
}

//获取零售账户是否已认定
export async function GetCompJc({ rwIDs }) {
    let data = new FormData()
    data.append("rwIDs", rwIDs)
    return request(`/api/restricted/GetCompJc/GetCompJc`, {
        method: 'POST',
        body: data,
    });
}